public class BitOperator {

    public static void main(String[] args) {

        int a1 = 2&3;

        int a2 = 2|3;

        int a3 = ~2;

        int a4 = 2^3;

        System.out.println("2&3="+a1);

        System.out.println("2|3="+a2);

        System.out.println("~-2="+a3);

        System.out.println("2^3="+a4);

//    自动向上取整
        System.out.println(10/3);//3
        int i =66;
        System.out.println(++i+i);//3
    }

}
